wayland: Implement DND icon hotspot API
authorJonas Ådahl <jadahl@gmail.com>
Tue, 8 Dec 2015 10:19:33 +0000 (18:19 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Dec 2015 16:47:07 +0000 (11:47 -0500)
commit3ab9d96623bc30678cbffc3bf9ec5133e714e87c
treea127d0fd0bab176cf03da2929eee49814b307213
parent0164256aecc8f7524913d0211efb6f536fd938df
wayland: Implement DND icon hotspot API

In Wayland, the hotspot of a DND icon is set using the buffer offset in
wl_buffer.attach. To implement this, add a private API to cause the
next wl_surface.attach to offset the new buffer with a given offset.
Setting a DND icon hotspot sets this offset while also queuing a redraw
of the window to trigger the wl_surface.attach.

https://bugzilla.gnome.org/show_bug.cgi?id=759168
gdk/wayland/gdkdnd-wayland.c
gdk/wayland/gdkprivate-wayland.h
gdk/wayland/gdkwindow-wayland.c